import request from '@/utils/request'

// 查询poct 项目列表
export function listQualityResult(query) {
  return request({
    url: '/system/qualityResult/list',
    method: 'get',
    params: query
  })
}

// 查询poct 项目详细
export function getQualityResult(id) {
  return request({
    url: '/system/qualityResult/' + id,
    method: 'get'
  })
}

// 新增poct 项目
export function addQualityResult(data) {
  return request({
    url: '/system/qualityResult',
    method: 'post',
    data: data
  })
}

// 修改poct 项目
export function updateQualityResult(data) {
  return request({
    url: '/system/qualityResult',
    method: 'put',
    data: data
  })
}

// 删除poct 项目
export function delQualityResult(id) {
  return request({
    url: '/system/qualityResult/' + id,
    method: 'delete'
  })
}
